home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 5 / QRZ Ham Radio Callsign Database - Volume 5.iso / unix / src / cb.h < prev    next >
C/C++ Source or Header  |  1993-04-09  |  671b  |  49 lines

  1. #include <stdio.h>
  2. #include <sys/types.h>
  3. #include <sys/stat.h>
  4. #include <sys/mman.h>
  5. #include <time.h>
  6. #include <string.h>
  7.  
  8. #define DELIMITER ','
  9.  
  10. #define    CALL         0
  11. #define LNAME         1
  12. #define JR         2
  13. #define FNAME         3
  14. #define MI         4
  15. #define DOB         5
  16. #define EFDATE         6
  17. #define EXPDATE        7
  18. #define MAIL_STR    8
  19. #define MAIL_CITY     9
  20. #define MAIL_ST     10
  21. #define MAIL_ZIP     11
  22. /*
  23. #define LOC_STR         xx
  24. #define LOC_CITY     xx
  25. #define LOC_ST         xx
  26. */
  27. #define CLASS         12
  28. #define P_CALL         13
  29. #define P_CLASS     14
  30. /*
  31. #define P_DAT         xx
  32. */
  33.  
  34.  
  35. typedef struct nind
  36. {
  37.     char    name[22];
  38.     long    pos;
  39. }NIND;
  40.  
  41. typedef struct cind
  42. {
  43.     char    call[8];
  44.     long    pos;
  45. }CIND;
  46.  
  47. int cmp_node();
  48. int cmp_name();
  49.